<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>视频编辑器</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>视频编辑器</h1>
<form method="post" enctype="multipart/form-data" th:action="@{/upload}">
    <label for="file">选择视频文件 (MP4):</label>
    <input type="file" id="file" name="files" accept="video/mp4" multiple required>
    <br>
    <label for="adTime">广告时间（秒）:</label>
    <input type="text" id="adTime" name="adTime" value="3.5" required>
    <br>
    <button type="submit">上传并处理</button>
</form>
<div>
    <p th:each="message : ${messages}" th:text="${message}"></p>
    <p th:each="downloadLink : ${downloadLinks}">
        <a th:href="${downloadLink}" th:text="${downloadLink}" target="_blank"></a>
    </p>
</div>
</body>
</html>
